package com.spr.gw.handler;

import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by lsy
 * on 2017/11/10 10:21.
 */
@Controller
@RequestMapping("/error")
public class BaseErrorController implements ErrorController{

    @Override
    public String getErrorPath() {
        return "error/error";
    }

    @RequestMapping
    public String error() {
        return getErrorPath();
    }
}
